<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/{v?}', function ($v= 'Laravel 5  已经部署成功！') {
//    return view('welcome');  
    return view('welcome')->with(['v' => $v]);
});

//提供给手机端的API的路由
//0. API: 首页接口(2017-11-11根据前端提供的接口文档将首页接口合并为一个接口)
Route::get('/api/home', 'MobileApi\HomeController@GetPortalInfo');
//1. API：获取首页轮播图及相关内容
Route::get('/api/home/rollpic/{token?}', 'MobileApi\HomeController@GetHomeRollPicture');
//2. API: 获取首页【翻译中，点评中，优秀译文】板块的内容
Route::get('/api/home/threadlist/{token?}/{uid?}', 'MobileApi\HomeController@GetHomeGoodAndCommentArticle');
//3. API：获取首页【经典赏析】模块的内容
Route::get('/api/home/classics_appreciation/{token?}', 'MobileApi\HomeController@GetClassicsAppreciation');
//4. API: 获取首页【贤二漫画】板块内容
Route::get('/api/home/xianercartoon_info/{token?}', 'MobileApi\HomeController@GetXianercartoon');
Route::get('/api/home/test', 'MobileApi\HomeController@ce');
#任务翻译
Route::get('/api/translation/test', 'MobileApi\TranslationController@ce');
Route::get('/api/translation/original_article', 'MobileApi\TranslationController@original_article');
Route::get('/api/translation/list', 'MobileApi\TranslationController@lst');
Route::get('/api/translation/translationListOfTask', 'MobileApi\TranslationController@TranslationListOfTask');
Route::get('/api/translation/detail', 'MobileApi\TranslationController@detail');
Route::get('/api/translation/comment_list', 'MobileApi\TranslationController@comment_list');
Route::get('/api/translation/vote', 'MobileApi\TranslationController@vote');
Route::get('/api/translation/vote_list', 'MobileApi\TranslationController@vote_list');
Route::get('/api/translation/browse', 'MobileApi\TranslationController@browse');
Route::get('/api/translation/task_list', 'MobileApi\TranslationController@task_list');
Route::get('/api/translation/vote_result', 'MobileApi\TranslationController@vote_result');
Route::post('/api/translation/commit_vote', 'MobileApi\TranslationController@commit_vote');
Route::get('/api/translation/commit_vote', 'MobileApi\TranslationController@commit_vote');

Route::get('/api/outstandingTranslation', 'MobileApi\OutstandingTranslationController@get');

//Route::get('/api/ranklist/get', 'MobileApi\TranslationController@ce');
Route::get('/api/ranklist/get', 'MobileApi\RanklistController@get');

//双语阅读主题列表接口(bilingualReadingThreadList)
Route::get('/api/bilingualReadingThreadList/{boardChoice?}/{paegNo?}', 'MobileApi\BilingualReadingController@ListBilingualReading');

//发表回复接口(publishReply)
Route::post('/api/publishReply', 'MobileApi\PublishController@PublishReply');
Route::get('/api/publishReply', 'MobileApi\PublishController@PublishReply');

//登录接口(logout)
Route::get('/api/login', 'MobileApi\LoginController@login');
//退出登录接口(logout)
Route::get('/api/logout', 'MobileApi\LoginController@logout');
//获取登录状态(loginStatus)
Route::get('/api/loginStatus', 'MobileApi\LoginController@loginStatus');

//获取主题首帖
Route::get('/api/getThreadFirstPost', 'MobileApi\ThreadController@GetThreadFirstPost');

//在线词典
Route::get('/api/dict/lookup', 'MobileApi\DictController@Lookup');
//Route::get('/api/dict/cut', 'MobileApi\DictController@Cut');







